package chapter3.section2;

/**
 * 程序3-1：交换两个变量的值
 *
 * @author 作者姓名
 */
public class Swap {
    public static void main(String[] args) {
        int a = 10, b = 20;
        int t = 0;
        t = a;
        a = b;
        b = t;
        System.out.println("a=" + a);
        System.out.println("b=" + b);
    }
} 
